package com.example.demo.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
import com.example.demo.entity.Goods;
import com.example.demo.mapper.GoodsMapper;
import com.example.demo.service.IGoodsService;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author Mr.Abel
 * @since 2024-12-31
 */
@Service
public class GoodsServiceImpl extends ServiceImpl<GoodsMapper, Goods> implements IGoodsService {


    @Override
    public int addGoods(Goods goods) {
        if (goods != null ){
            return this.baseMapper.addGoods(goods);
        }
        return 0;
    }

}
